/*
 * testStringLoader.cpp
 *
 *  Created on: Nov 24, 2011
 *      Author: fferri
 */
#include "testStringLoader.h"

bool CTestStringLoader::loadItem(const std::string& file, const lpe::resman::Resource* res)
{
	std::ifstream inFile;
	inFile.open(file.c_str());
	if(!inFile.is_open())
		return false;

	std::string currentLine;
	while(inFile.good())
	{
		std::getline(inFile,currentLine);
		m_strings.push_back(currentLine);
	}
	inFile.close();
	return true;
}

CTestStringLoader::CTestStringLoader()
	:LOADER_ID(1122)
{}
const uint32_t CTestStringLoader::getLoaderID()
{
	return LOADER_ID;
}
CTestStringLoader::~CTestStringLoader()
{}

void CTestStringLoader::removeItem(const std::string& file)
{

}
